package com.nativetalk.controller.app.customer;

import org.springframework.stereotype.Controller;

/**
 * Created by lizhun on 15/12/9.
 */
@Controller
public class CustomerController {


//    /**
//     * @return  RetInfo
//     * @Purpose 客服聊天
//     * @version 2.0
//     * @time    2015-12-25
//     * @author  lizhun
//     */
//    @RequestMapping(value = "/app/2/customer", method = {RequestMethod.GET, RequestMethod.POST}, consumes = "application/json")
//    @ResponseBody
//    public RetInfo list(@RequestBody Map<String, String> mapParam,
//                        @RequestHeader(value = "token", required = false) String token) {
//        RetInfo retInfo = new RetInfo();
//        Map<String, Object> map = new HashMap<>();
//        map.put("channel", mapParam.get("devicetoken"));
//        map.put("prompt", "你点对地方啦~ 我是集课程顾问和客服为一体的外教君小助, \n" +
//                "有何指教?");
//        /**
//         * 发送推送
//         */
//        String memb_name = "游客";
//        String memb_head = "/nativetalk/head/head.png";
//        String memb_phone = "13333333333";
//        if (token!=null && MemcachedUtils.get(token) != null ) {
//            TdNtMember tdNtMember = (TdNtMember) MemcachedUtils.get(token);
//            memb_name = tdNtMember.getMemb_name();
//            memb_head = tdNtMember.getMemb_head_portrait();
//            memb_phone = tdNtMember.getMemb_phone();
//
//        }
//        IosCustomerGetui.customer("外教君客服","有人咨询","1387409dffaed96d98eba42b2d4373f007e2ecea267e74c19ea78a4e31c67041"
//                ,mapParam.get("devicetoken"),memb_name,memb_head,memb_phone);
//        retInfo.setMark(ValidationMessages.getValue("MARKYES"));
//        retInfo.setTip("成功");
//        retInfo.setObj(map);
//        return retInfo;
//    }

}


